<template>
	<view class="">
		<view class="row between item-con" v-for="(item,index) in dataList" :key="index">
			<view class="">
				<view class="item-name">
					{{item.name}}
				</view>
				<view class="item-phone">
					{{item.phone}}
				</view>
			</view>
			<view class="" hover-class="hover-opcaity" @tap="callphone(item.phone)">
				<image src="/static/img/dianhua.png" mode="" class="phone-icon"></image>
			</view>
		</view>
		<mix-loading v-if="isLoading"></mix-loading>
	</view>
</template>

<script>
	export default {
		data(){
			return{
				dataList:[]
			}
		},
		onLoad() {
			this.loadData();
		},
		methods:{
			async loadData(){
				const res=await this.$request('content/serve',{},{showLoading:true});
				if(res.result==0){
					this.dataList=res.dataList;
				}else{
					this.$util.msg(res.resultNote)
				}
			}
		}
	}
</script>
<style>
	page{
		background: #F8F8F8;
	}
</style>

<style scoped lang="scss">
	.item-con{
		padding: 20upx;
		background: #FFFFFF;
		margin-bottom: 20upx;
	}
	.phone-icon{
		width:48upx;
		height: 48upx;
	}
	.item-name{
		font-size: 26upx;
		color: #333333;
		font-weight: bold;
		line-height: 40upx;
	}
	.item-phone{
		font-size: 24upx;
		color: #999999;
		font-weight: 500;
		line-height: 40upx;
	}
</style>
